package com.liugh.service.zhongche;

import com.baomidou.mybatisplus.plugins.Page;
import com.liugh.entity.User;
import com.liugh.entity.standard.StandardMessage;

public interface IStandardMessageService {

    /**
     * 新增留言
     */
    StandardMessage addMessage(StandardMessage message);

    /**
     * 删除留言
     */
    boolean deleteMessageById(int id);

    /**
     * 分页获取所有留言
     */
    Page<StandardMessage> getAllMsgPage(Page<StandardMessage> page);

    /**
     * 分页获取我的留言,根据时间逆序
     */
    Page<StandardMessage> getMyMsgPage(Page<StandardMessage> page, String userNo, boolean isAsc);

    boolean delMessage(int id, User user);


    StandardMessage updateMessageById(StandardMessage standardMessage);


    StandardMessage getMessageById(int id);

}
